package com.magenta.maxoptra.gis;

/*
* Project: MaxOptRA v1.1
* User: Ivan Usalko
* Date: 22.07.2009 10:19:06
*
* Copyright (c) 1999-2009 Magenta Corporation Ltd. All Rights Reserved.
* Magenta Technology proprietary and confidential.
* Use is subject to license terms.
*/
/**
 * State object for IGeocodingSettings.
 */
class BasicGeoSettings extends AbstractGeoSettings {

    private Proxy proxy;
    private String language;

    private final GeoSettings settings;

    BasicGeoSettings(GeoSettings settings) {
        this.settings = settings;
        proxy = settings.getProxy();
        language = settings.getLanguage();
    }

    @Override
    public Proxy getProxy() {
        return proxy;
    }

    @Override
    public void setProxy(Proxy proxy) {
        this.proxy = proxy;
    }

    @Override
    public String getLanguage() {
        return language;
    }

    @Override
    public void setLanguage(String language) {
        this.language = language;
    }

//    @Override
//    public GeocodingKey getGeocodingKey(GeocodingKeyId geocodingKeyId) {
//        return settings.getGeocodingKey(geocodingKeyId);
//    }
//
    @Override
    public GisParameters getProviderParams(GeocodingKeyId geocodingKeyId) {
        return settings.getProviderParams(geocodingKeyId);
    }
}
